$(function() {
    var token = localStorage.token;
    if(!token) {
        location.href = "../loginAndReg/login.html";
        return false;
    }
    new FastClick(document.body);
    $(".logout").on("click",function() {
        var width = window.screen.width;
        var height = window.screen.height;
        $(".logoutMarsk").css({
            "width":width,
            "height":height,
            "display":"block"
        });
    });
    //取消
    $(".cancel").on("click",function() {
        $(".logoutMarsk").css("display","none");
    });
    //退出登录
    $(".sure").on("click",function() {
        // localStorage.token = "";
        localStorage.clear();
        location.href = "../loginAndReg/login.html";
    });
});